package bean;
import java.sql.*;
import bean.dbbean.*;
public class replybean {
	Connection conn=dbbean.getConn();
	PreparedStatement pstmt;
	public boolean insertreply(String name,String subject,String time,String reply) throws SQLException{
		String mysql="insert into reply(name,subject,time,reply) values(?,?,?,?)";
	   	 PreparedStatement pst=conn.prepareStatement(mysql);
	        pst.setString(1,name);
	        pst.setString(2,subject);
	        pst.setString(3,time);
	        pst.setString(4,reply);
	        int a=pst.executeUpdate();
	        if(a>0)
	        {
	        	return true;
	        }
	        else
	        {
	        	return false;
	        }
	}

}
